import Main from '@/components/main'

export default

[{
  path: '/system',
  name: 'system',
  meta: {
    icon: 'logo-buffer',
    title: '系统管理'
  },
  component: Main,
  children: [
   {
     path: '/menu',
     name: 'menu',
     meta: {
       icon: 'logo-buffer',
       title: '菜单管理'
     },
     icon: 'link',
     component: resolve => void(require(['@/view/system/menu/menuTable.vue'], resolve)),
   },
    {
      path: '/user',
      name: 'user',
      meta: {
        icon: 'logo-buffer',
        title: '用户管理'
      },
      icon: 'link',
      component: resolve => void(require(['@/view/system/user/userTable.vue'], resolve)),
    },
    {
      path: '/role',
      name: 'role',
      meta: {
        icon: 'logo-buffer',
          title: '角色管理'
      },
      icon: 'link',
      component: resolve => void(require(['@/view/system/role/roleTable.vue'], resolve)),
    },
    {
      path: '/dept',
      name: 'dept',
      meta: {
        icon: 'logo-buffer',
        title: '部门管理'
      },
      icon: 'link',
      component: resolve => void(require(['@/view/system/dept/deptTable.vue'], resolve)),
    },
    {
      path: 'log',
      title: '操作日志',
      access: 0,
      name: 'log',
      meta: {
        actions: []
      },
      icon: 'link',
      component: resolve => void(require(['@/view/system/log/logTable.vue'], resolve)),
    }
  ]
}]
